package _0_语法._3_分支;

import java.util.Scanner;

/**
 * 判断一个数能否同时被3和5整除
 */
public class _7_能否同时被3和5整除 {

   public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int num;
        System.out.println("请输入一个整数：");
        num = scanner.nextInt();

        if(num % 3 == 0 && num % 5 == 0){
            System.out.println("能被3和5整除");
        }
        else{
            System.out.println("不能被3和5整除");
        }
    }
}
